<div id="<?php echo $uniqid;?>" style="padding: 0 0 10px 0;">
  <table border="0" width="100%" cellspacing="1" cellpadding="0" class="formtable" v-if="has_flag">
    <tr>
      <td>
        <div>经销商ID：<span class="color-037AA4">{{infoData.qudai_id}}</span></div>
      </td>
      <td>
        <div>代理级别：<span class="color-037AA4">{{infoData.qudai_level.name}}</span></div>
      </td>
      <td>
        <div>代理区域：<span class="color-037AA4">{{infoData.area_name}}</span></div>
      </td>
    </tr>
    <tr>
      <td>
        <div>状态：<span :class="infoData.member.status=='normal'?'color-7DF31F':'color-980404'">{{infoData.member.status == 'normal'?'正常':'异常'}}</span></div>
      </td>
      <td>
        <div>昵称：<span class="color-037AA4">{{infoData.member.nickname}}</span></div>
      </td>
      <td>
        <div>当前分红比例：<span class="color-037AA4">{{infoData.qudai_level.commission_rules}}%</span></div>
      </td>
    </tr>
    <tr>
      <td>
        <div>姓名：<span class="color-037AA4">{{infoData.member.realname}}</span></div>
      </td>
      <td>
        <div>手机号码：<span class="color-037AA4">{{infoData.member.phone}}</span></div>
      </td>
      <td>
        <div>加入时间：<span class="color-037AA4">{{infoData.created_at}}</span></div>
      </td>
    </tr>
    <tr>
      <td colspan="3" style="border-bottom: none;">
        <div class="custom-afterasle-record" style="padding: 10px 20px; line-height: 2.5em;">
          <div class="afterasle-record-title display-flex">
            <div style="font-size: 14px; font-weight: bold; text-indent: -20px; overflow: visible;">变动日志记录</div>
          </div>
          <div class="afterasle-record-container" v-for="(item, index) in infoData.qudai_log">
            <div class="display-flex record-title-container" style="border-top: 1px dashed #eee;" v-if="index > 0">
              <div class="record-title">{{item.remark}}</div>
              <div class="color-999">{{item.created_at}}</div>
            </div>
            <div class="display-flex record-title-container" v-else>
              <div class="record-title">{{item.remark}}</div>
              <div class="color-999">{{item.created_at}}</div>
            </div>
          </div>
        </div>
      </td>
    </tr>
  </table>
  <div style="padding-top: 2em; text-align: center; font-size: 2em; color: #0697f1;" v-else>
    记录不存在！
  </div>
</div>

<script>
  var qudaiInfoVm = new Vue({
    el: '#<?php echo $uniqid;?>',
    data: {
      has_flag:'<?php echo addslashes($has_flag);?>',
      infoData: JSON.parse('<?php echo addslashes($dataset);?>'),
    }
  });
</script>

<style>
  .color-999 {
    color: #999;
  }

  .color-FF5959 {
    color: #FF5959;
  }

  .color-037AA4 {
    color: #037aa4;
  }

  .color-F8A92B {
    color: #F8A92B;
  }

  .color-7DF31F {
    color: #7df31f;
  }

  .color-980404 {
    color: #980404;
  }
  .record-reason, .record-describe {
    margin-bottom: 10px;
  }

  .afterasle-record-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 18px;
    justify-content: space-between;
  }

  .afterasle-record-container {
    padding-left: 20px;
  }

  .record-title {
    margin-right: 60px;
  }

  .custom-afterasle-operation {
    padding: 40px 0 40px 50px;
    border: 0px solid #E6E6E6;
    border-top: none;
    margin-bottom: 20px;
  }

  .operation-title {
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 20px;
  }

  .operation-title i {
    font-size: 30px;
    margin-right: 18px;
  }

  .color-7438D5 {
    color: #7438D5;
  }

  .operation-tip {
    padding-left: 48px;
    font-size: 14px;
    margin-bottom: 40px;
  }

  .operation-btn {
    padding-left: 48px;
    margin-bottom: 82px;
  }

  .common-btn {
    width: 98px;
    height: 36px;
    background: #7438D5;
    border-radius: 4px;
    justify-content: center;
    cursor: pointer;
    color: #fff;
  }

  .refuse-btn {
    margin: 0 30px;
    background: #fff;
    border: 1px solid #7438D5;
    color: #7438D5;
  }

  .operation-title {
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 20px;
  }

  .tip-container {
    display: flex;
    margin-bottom: 10px;
  }

  .order-main-btn {
    margin-right: 20px;
    width: 88px;
    text-align: center;
    height: 30px;
    line-height: 30px;
    color: #fff;
    border-radius: 4px;
    background: #753ECD;
    cursor: pointer;
  }

  .order-detail-tip-title {
    color: #FFB333;
  }

  .order-detail-remark {
    color: #7438D5;
  }

  .all-refund-money-text {
    color: #FF5959;
    cursor: pointer;
  }

  .order-msg-right-money {
    font-size: 20px;
    color: #FF5000;
  }

  .order-msg-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .order-msg-center .el-steps.el-steps--horizontal {
    width: 84%;
  }

  .el-steps {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .el-steps--simple {
    padding: 13px 8%;
    border-radius: 4px;
    background: #f5f7fa;
  }

  .el-steps--horizontal {
    white-space: nowrap;
  }

  .el-steps--vertical {
    height: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column;
    flex-flow: column;
  }

  .el-step {
    position: relative;
    -ms-flex-negative: 1;
    flex-shrink: 1;
  }

  .el-step:last-of-type .el-step__line {
    display: none;
  }

  .el-step:last-of-type.is-flex {
    -ms-flex-preferred-size: auto !important;
    flex-basis: auto !important;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    flex-grow: 0;
  }

  .el-step:last-of-type .el-step__description,
  .el-step:last-of-type .el-step__main {
    padding-right: 0;
  }

  .el-step__head {
    position: relative;
    width: 100%;
  }

  .el-step__head.is-process {
    color: #303133;
    border-color: #303133;
  }

  .el-step__head.is-wait {
    color: #c0c4cc;
    border-color: #c0c4cc;
  }

  .el-step__head.is-success {
    color: #67c23a;
    border-color: #67c23a;
  }

  .el-step__head.is-error {
    color: #f56c6c;
    border-color: #f56c6c;
  }

  .el-step__head.is-finish {
    color: #7438d5;
    border-color: #7438d5;
  }

  .el-step__icon {
    position: relative;
    z-index: 1;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 24px;
    height: 24px;
    font-size: 14px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background: #fff;
    -webkit-transition: 0.15s ease-out;
    transition: 0.15s ease-out;
  }

  .el-step__icon.is-text {
    color: #fff;
    border-radius: 50%;
    border: 2px solid;
    border-color: inherit;
  }

  .el-step__icon.is-icon {
    width: 40px;
  }

  .el-step__icon-inner {
    display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: center;
    font-weight: 700;
    line-height: 1;
    color: inherit;
  }

  .el-step__icon-inner[class*="el-icon"]:not(.is-status) {
    font-size: 25px;
    font-weight: 400;
  }

  .el-step__icon-inner.is-status {
    -webkit-transform: translateY(1px);
    transform: translateY(1px);
  }

  .el-step__line {
    position: absolute;
    border-color: inherit;
    background-color: #c0c4cc;
  }

  .el-step__line-inner {
    display: block;
    border-width: 1px;
    border-style: solid;
    border-color: inherit;
    -webkit-transition: 0.15s ease-out;
    transition: 0.15s ease-out;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 0;
    height: 0;
  }

  .el-step__main {
    white-space: normal;
    text-align: left;
  }

  .el-step__title {
    font-size: 14px;
    line-height: 38px;
  }

  .el-step__title.is-process {
    font-weight: 500;
    color: #303133;
  }

  .el-step__title.is-wait {
    color: #c0c4cc;
  }

  .el-step__title.is-success {
    color: #444;
  }

  .el-step__title.is-error {
    color: #f56c6c;
  }

  .el-step__title.is-finish {
    color: #7438d5;
  }

  .el-step__description {
    padding-right: 10%;
    margin-top: -5px;
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
  }

  .el-step__description.is-process {
    color: #303133;
  }

  .el-step__description.is-wait {
    color: #c0c4cc;
  }

  .el-step__description.is-success {
    color: #999;
  }

  .el-step__description.is-error {
    color: #f56c6c;
  }

  .el-step__description.is-finish {
    color: #7438d5;
  }

  .el-step.is-horizontal {
    display: inline-block;
  }

  .el-step.is-horizontal .el-step__line {
    height: 1px;
    top: 11px;
    left: 0;
    right: 0;
  }

  .el-step.is-vertical {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .el-step.is-vertical .el-step__head {
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    flex-grow: 0;
    width: 24px;
  }

  .el-step.is-vertical .el-step__main {
    padding-left: 10px;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
  }

  .el-step.is-vertical .el-step__title {
    line-height: 24px;
    padding-bottom: 8px;
  }

  .el-step.is-vertical .el-step__line {
    width: 2px;
    top: 0;
    bottom: 0;
    left: 11px;
  }

  .el-step.is-vertical .el-step__icon.is-icon {
    width: 24px;
  }

  .el-step.is-center .el-step__head {
    text-align: center;
  }

  .el-step.is-center .el-step__main {
    text-align: center;
  }

  .el-step.is-center .el-step__description {
    padding-left: 20%;
    padding-right: 20%;
  }

  .el-step.is-center .el-step__line {
    left: 50%;
    right: -50%;
  }

  .el-step.is-simple {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .el-step.is-simple .el-step__head {
    width: auto;
    font-size: 0;
    padding-right: 10px;
  }

  .el-step.is-simple .el-step__icon {
    background: 0 0;
    width: 16px;
    height: 16px;
    font-size: 12px;
  }

  .el-step.is-simple .el-step__icon-inner[class*="el-icon"]:not(.is-status) {
    font-size: 18px;
  }

  .el-step.is-simple .el-step__icon-inner.is-status {
    -webkit-transform: scale(0.8) translateY(1px);
    transform: scale(0.8) translateY(1px);
  }

  .el-step.is-simple .el-step__main {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
  }

  .el-step.is-simple .el-step__title {
    font-size: 16px;
    line-height: 20px;
  }

  .el-step.is-simple:not(:last-of-type) .el-step__title {
    max-width: 50%;
    word-break: break-all;
  }

  .el-step.is-simple .el-step__arrow {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .el-step.is-simple .el-step__arrow::after,
  .el-step.is-simple .el-step__arrow::before {
    content: "";
    display: inline-block;
    position: absolute;
    height: 15px;
    width: 1px;
    background: #c0c4cc;
  }

  .el-step.is-simple .el-step__arrow::before {
    -webkit-transform: rotate(-45deg) translateY(-4px);
    transform: rotate(-45deg) translateY(-4px);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
  }

  .el-step.is-simple .el-step__arrow::after {
    -webkit-transform: rotate(45deg) translateY(4px);
    transform: rotate(45deg) translateY(4px);
    -webkit-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
  }

  .el-step.is-simple:last-of-type .el-step__arrow {
    display: none;
  }

  .el-step.is-center .el-step__head {
    text-align: center;
  }

  .el-step__head.is-success {
    color: #7536D0;
    border-color: #7536D0;
  }

  .el-step__head {
    position: relative;
    width: 100%;
  }

  .el-step__head.is-success .el-step__icon.is-text {
    background: #7536D0;
  }

  .el-step__icon.is-text {
    background: #eee;
    border: 4px solid #fff;
  }

  .el-step__icon.is-text {
    border-radius: 50%;
  }

  .el-step__icon {
    width: 38px;
    height: 38px;
  }

  .el-step.is-horizontal .el-step__line {
    top: 18px;
  }

  .el-table th .cell, .el-table td .cell {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .el-table th.is-leaf {
    border-bottom: none;
  }

  .el-table td, .el-table th, .el-table th.is-leaf {
    border-color: #f7f7f7;
  }

  .el-table th {
    font-size: 13px;
  }

  .el-table th {
    background: #F9F9F9;
  }

  .el-table th {
    padding: 7px 0;
  }

  .el-table, .el-table thead, .el-table th {
    color: #444;
    font-weight: 500;
  }

  .cursor-pointer {
    cursor: pointer;
  }

  .theme-color {
    color: #7536D0;
  }
</style>